function [tempTrafficBuffer] = changeTrafficBuffer (primaryPathTable, trafficBuffer)
    
    PR = length(primaryPathTable); 
    TB = length(trafficBuffer);
    tempTrafficBuffer = zeros(1,2);
    for i = 1: PR
        tempTrafficBuffer(i,1) = primaryPathTable(i);
        tempTrafficBuffer(i,2) = 0;
    end
    for i = 1:PR
        node = tempTrafficBuffer(i);
        for j = 1:TB
            node1 = trafficBuffer(j,1);
            if node == node1
                tempTrafficBuffer(i,2) = trafficBuffer(j,2);
            end
            
        end
    end
   
end